<h1>New topic_category</h1>

<%= error_messages_for :topic_category %>

<% form_for(@topic_category) do |f| %>
  <p>
    <b>Category</b><br />
<!--    <%= f.text_field :category_type %> -->
     <%= @types = TopicCategory.find(:all, :order => "category_type", :group => "category_type" )
        f.collection_select(:category_type, @types, :category_type, :category_type) %>
  </p>

  <p>
    <b>Name</b><br />
    <%= f.text_field :name %>
  </p>

  <p>
    <b>Description</b><br />
    <%= f.text_field :description %>
  </p>

  <p>
    <b>Quantity</b><br />
    <%= f.text_field :quantity %>
  </p>

  <p>
    <b>Price</b><br />
    <%= f.text_field :price %>
  </p>

  <p>
    <%= f.submit "Create" %>
  </p>
<% end %>

<%= link_to 'Back', topic_categories_path %>
